﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using System.Linq.Expressions;

namespace JackyCode.Mock.Test.Spike
{
    [TestFixture]
    public class TestExpression
    {
        [Test]
        public void TestGetMethod()
        {
            Expression<Func<IService,string>> expression = service => service.HelloWorld();
            Assert.IsTrue(expression.Body is MethodCallExpression);
        }
    }

}
